<!-- 虚拟列表 -->
<template>
  <MyList :listData="data" :itemSize="100" />
</template>
<script lang="ts">
import { defineComponent } from "vue";
import MyList from "../components/MyList.vue";

export default defineComponent({
  name: "VirtualList",
  setup() {
    let data = [];
    for (let i = 0; i < 1000; i++) {
      data.push({ id: i, value: i });
    }
    return { data };
  },
  components: {
    MyList,
  },
});
</script>

<style lang="scss" scoped>
</style>
  
